package com.hcg.distributedtx;

import com.hcg.distributedtx.common.business.CommonMapper;
import com.hcg.distributedtx.config.db.DBConfigCm;
import com.hcg.distributedtx.config.db.DBConfigHcg;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import tk.mybatis.spring.annotation.MapperScan;

@SpringBootApplication
@Slf4j
@EnableConfigurationProperties(value = {DBConfigCm.class, DBConfigHcg.class})
@MapperScan(basePackages = {"com.hcg.distributedtx.cm.mapper","com.hcg.distributedtx.hcg.mapper"},markerInterface = CommonMapper.class)
public class DistributedtxApplication {

    public static void main(String[] args) {
        log.info("*********项目启动开始***********");
        SpringApplication.run(DistributedtxApplication.class, args);
        log.info("*********项目启动完成***********");
    }

}
